import request from '@/utils/request'

// 查询Flink版本信息列表
export function listFlinkversions(query) {
    return request({
        url: '/resource/flinkversions/list',
        method: 'get',
        params: query
    })
}

// 查询Flink版本信息详细
export function getFlinkversions(id) {
    return request({
        url: '/resource/flinkversions/' + id,
        method: 'get'
    })
}

// 新增Flink版本信息
export function addFlinkversions(data) {
    return request({
        url: '/resource/flinkversions',
        method: 'post',
        data: data
    })
}

// 修改Flink版本信息
export function updateFlinkversions(data) {
    return request({
        url: '/resource/flinkversions',
        method: 'put',
        data: data
    })
}

// 删除Flink版本信息
export function delFlinkversions(id) {
    return request({
        url: '/resource/flinkversions/' + id,
        method: 'delete'
    })
}

export function getAllFlinkversions() {
    return request({
        url: '/resource/flinkversions/allList',
        method: 'get'
    })
}
